<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Collision Checker: cpp/collision/include/collision/solvers/collision_requests.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Collision Checker
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_df511e5bd85cec96854b39d5e1c27aa8.html">cpp</a></li><li class="navelem"><a class="el" href="dir_bf0f0c8865c1942e08ab5157e2c596db.html">collision</a></li><li class="navelem"><a class="el" href="dir_0695118b3b27d100933d16472a5a2e05.html">include</a></li><li class="navelem"><a class="el" href="dir_d28884e0e9991dd74831dd1628ef4f1a.html">collision</a></li><li class="navelem"><a class="el" href="dir_bdd6342fc1746f79ffd598f113c7d136.html">solvers</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">collision_requests.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="collision__requests_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//*  Author: Vitaliy Rusinov</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacecollision.html">collision</a> {</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno"><a class="line" href="namespacecollision.html#a5710326b44abbfb109e65257ee5f310a">    6</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="namespacecollision.html#a5710326b44abbfb109e65257ee5f310a">CollisionSolverType</a> { <a class="code" href="namespacecollision.html#a5710326b44abbfb109e65257ee5f310aa8ebb6af9dcffddc56e2de7bad9a3508b">COL_DEFAULT</a> = 0, <a class="code" href="namespacecollision.html#a5710326b44abbfb109e65257ee5f310aae87b36802cf34cd7fc17472a7143a0ab">COL_FCL</a> = 1 };</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="classcollision_1_1_collision_result.html">   12</a></span>&#160;<span class="keyword">class </span><a class="code" href="classcollision_1_1_collision_result.html">CollisionResult</a> {</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="classcollision_1_1_collision_result.html#a8f1bf5a4b17db63808a6e0fd05dc8f81">   14</a></span>&#160;  <a class="code" href="classcollision_1_1_collision_result.html#a8f1bf5a4b17db63808a6e0fd05dc8f81">CollisionResult</a>(<span class="keywordtype">void</span>) { <a class="code" href="classcollision_1_1_collision_result.html#ab32cdef4dfcdcbeb4df72b2aec52bb49">m_collides</a> = <span class="keyword">false</span>; }</div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="classcollision_1_1_collision_result.html#acc22ba66fddc2dfb73d82257fcb30eae">   15</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classcollision_1_1_collision_result.html#acc22ba66fddc2dfb73d82257fcb30eae">collides</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classcollision_1_1_collision_result.html#ab32cdef4dfcdcbeb4df72b2aec52bb49">m_collides</a>; }</div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classcollision_1_1_collision_result.html#aefc6062e7307d1b0b6b491b181692a12">   16</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classcollision_1_1_collision_result.html#aefc6062e7307d1b0b6b491b181692a12">set_result</a>(<span class="keywordtype">bool</span> res) { <span class="keywordflow">return</span> <a class="code" href="classcollision_1_1_collision_result.html#ab32cdef4dfcdcbeb4df72b2aec52bb49">m_collides</a> = res; }</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="classcollision_1_1_collision_result.html#ab32cdef4dfcdcbeb4df72b2aec52bb49">   19</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classcollision_1_1_collision_result.html#ab32cdef4dfcdcbeb4df72b2aec52bb49">m_collides</a>;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;};</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classcollision_1_1_collision_request.html">   26</a></span>&#160;<span class="keyword">class </span><a class="code" href="classcollision_1_1_collision_request.html">CollisionRequest</a> {</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classcollision_1_1_collision_request.html#aad10ab7bbfbc2980479232eb3fbd1b9e">   28</a></span>&#160;  <a class="code" href="classcollision_1_1_collision_request.html#aad10ab7bbfbc2980479232eb3fbd1b9e">CollisionRequest</a>(<span class="keywordtype">void</span>) { <a class="code" href="classcollision_1_1_collision_request.html#a4f8a8be35a7e0f0ba4491f32c183f763">col_solver_type</a> = <a class="code" href="namespacecollision.html#a5710326b44abbfb109e65257ee5f310aa8ebb6af9dcffddc56e2de7bad9a3508b">CollisionSolverType::COL_DEFAULT</a>; }</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classcollision_1_1_collision_request.html#ad919cf3ad037c5058fbe94015143ced2">   29</a></span>&#160;  <a class="code" href="classcollision_1_1_collision_request.html#ad919cf3ad037c5058fbe94015143ced2">CollisionRequest</a>(<a class="code" href="namespacecollision.html#a5710326b44abbfb109e65257ee5f310a">CollisionSolverType</a> <a class="code" href="classcollision_1_1_collision_request.html#a4f8a8be35a7e0f0ba4491f32c183f763">col_solver_type</a>) {</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    this-&gt;col_solver_type = <a class="code" href="classcollision_1_1_collision_request.html#a4f8a8be35a7e0f0ba4491f32c183f763">col_solver_type</a>;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;  }</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classcollision_1_1_collision_request.html#a4f8a8be35a7e0f0ba4491f32c183f763">   32</a></span>&#160;  <a class="code" href="namespacecollision.html#a5710326b44abbfb109e65257ee5f310a">CollisionSolverType</a> <a class="code" href="classcollision_1_1_collision_request.html#a4f8a8be35a7e0f0ba4491f32c183f763">col_solver_type</a>;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;};</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;} <span class="comment">// namespace collision</span></div><div class="ttc" id="namespacecollision_html_a5710326b44abbfb109e65257ee5f310a"><div class="ttname"><a href="namespacecollision.html#a5710326b44abbfb109e65257ee5f310a">collision::CollisionSolverType</a></div><div class="ttdeci">CollisionSolverType</div><div class="ttdef"><b>Definition:</b> <a href="collision__requests_8h_source.html#l00006">collision_requests.h:6</a></div></div>
<div class="ttc" id="namespacecollision_html_a5710326b44abbfb109e65257ee5f310aa8ebb6af9dcffddc56e2de7bad9a3508b"><div class="ttname"><a href="namespacecollision.html#a5710326b44abbfb109e65257ee5f310aa8ebb6af9dcffddc56e2de7bad9a3508b">collision::COL_DEFAULT</a></div><div class="ttdef"><b>Definition:</b> <a href="collision__requests_8h_source.html#l00006">collision_requests.h:6</a></div></div>
<div class="ttc" id="classcollision_1_1_collision_result_html_ab32cdef4dfcdcbeb4df72b2aec52bb49"><div class="ttname"><a href="classcollision_1_1_collision_result.html#ab32cdef4dfcdcbeb4df72b2aec52bb49">collision::CollisionResult::m_collides</a></div><div class="ttdeci">bool m_collides</div><div class="ttdef"><b>Definition:</b> <a href="collision__requests_8h_source.html#l00019">collision_requests.h:19</a></div></div>
<div class="ttc" id="classcollision_1_1_collision_request_html_aad10ab7bbfbc2980479232eb3fbd1b9e"><div class="ttname"><a href="classcollision_1_1_collision_request.html#aad10ab7bbfbc2980479232eb3fbd1b9e">collision::CollisionRequest::CollisionRequest</a></div><div class="ttdeci">CollisionRequest(void)</div><div class="ttdef"><b>Definition:</b> <a href="collision__requests_8h_source.html#l00028">collision_requests.h:28</a></div></div>
<div class="ttc" id="classcollision_1_1_collision_result_html_acc22ba66fddc2dfb73d82257fcb30eae"><div class="ttname"><a href="classcollision_1_1_collision_result.html#acc22ba66fddc2dfb73d82257fcb30eae">collision::CollisionResult::collides</a></div><div class="ttdeci">bool collides() const</div><div class="ttdef"><b>Definition:</b> <a href="collision__requests_8h_source.html#l00015">collision_requests.h:15</a></div></div>
<div class="ttc" id="namespacecollision_html"><div class="ttname"><a href="namespacecollision.html">collision</a></div><div class="ttdef"><b>Definition:</b> <a href="collision__checker_8h_source.html#l00020">collision_checker.h:20</a></div></div>
<div class="ttc" id="classcollision_1_1_collision_request_html"><div class="ttname"><a href="classcollision_1_1_collision_request.html">collision::CollisionRequest</a></div><div class="ttdoc">Universal structure specifying collision request properties.</div><div class="ttdef"><b>Definition:</b> <a href="collision__requests_8h_source.html#l00026">collision_requests.h:26</a></div></div>
<div class="ttc" id="classcollision_1_1_collision_result_html_aefc6062e7307d1b0b6b491b181692a12"><div class="ttname"><a href="classcollision_1_1_collision_result.html#aefc6062e7307d1b0b6b491b181692a12">collision::CollisionResult::set_result</a></div><div class="ttdeci">bool set_result(bool res)</div><div class="ttdef"><b>Definition:</b> <a href="collision__requests_8h_source.html#l00016">collision_requests.h:16</a></div></div>
<div class="ttc" id="namespacecollision_html_a5710326b44abbfb109e65257ee5f310aae87b36802cf34cd7fc17472a7143a0ab"><div class="ttname"><a href="namespacecollision.html#a5710326b44abbfb109e65257ee5f310aae87b36802cf34cd7fc17472a7143a0ab">collision::COL_FCL</a></div><div class="ttdef"><b>Definition:</b> <a href="collision__requests_8h_source.html#l00006">collision_requests.h:6</a></div></div>
<div class="ttc" id="classcollision_1_1_collision_result_html_a8f1bf5a4b17db63808a6e0fd05dc8f81"><div class="ttname"><a href="classcollision_1_1_collision_result.html#a8f1bf5a4b17db63808a6e0fd05dc8f81">collision::CollisionResult::CollisionResult</a></div><div class="ttdeci">CollisionResult(void)</div><div class="ttdef"><b>Definition:</b> <a href="collision__requests_8h_source.html#l00014">collision_requests.h:14</a></div></div>
<div class="ttc" id="classcollision_1_1_collision_request_html_a4f8a8be35a7e0f0ba4491f32c183f763"><div class="ttname"><a href="classcollision_1_1_collision_request.html#a4f8a8be35a7e0f0ba4491f32c183f763">collision::CollisionRequest::col_solver_type</a></div><div class="ttdeci">CollisionSolverType col_solver_type</div><div class="ttdef"><b>Definition:</b> <a href="collision__requests_8h_source.html#l00032">collision_requests.h:32</a></div></div>
<div class="ttc" id="classcollision_1_1_collision_result_html"><div class="ttname"><a href="classcollision_1_1_collision_result.html">collision::CollisionResult</a></div><div class="ttdoc">Structure holding result for a collision request.</div><div class="ttdef"><b>Definition:</b> <a href="collision__requests_8h_source.html#l00012">collision_requests.h:12</a></div></div>
<div class="ttc" id="classcollision_1_1_collision_request_html_ad919cf3ad037c5058fbe94015143ced2"><div class="ttname"><a href="classcollision_1_1_collision_request.html#ad919cf3ad037c5058fbe94015143ced2">collision::CollisionRequest::CollisionRequest</a></div><div class="ttdeci">CollisionRequest(CollisionSolverType col_solver_type)</div><div class="ttdef"><b>Definition:</b> <a href="collision__requests_8h_source.html#l00029">collision_requests.h:29</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
